package com.wealth.page.enums;

public enum AdTypeEnum {
	INDEX(1,"首页"),BANK(2,"银行之家"),BBS(3,"论坛"),SCOREMARKET(4,"积分商场"),INDEXTWO(5,"首页第二区"),PCAD(6,"PC端首页广告"),PCPIC(7,"PC端轮播图");
	private int value;
	private String comment;
	
	
	private AdTypeEnum(int value, String comment) {
		this.value = value;
		this.comment = comment;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public static AdTypeEnum get(int value){
		for (AdTypeEnum o:AdTypeEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
	
}
